import * as React from 'react';
import {Button, View, Text} from 'react-native';
import useHideTabBar from '../utils/useHideTabBar';

function DetailsScreen({navigation}) {
  useHideTabBar(navigation);
  return (
    <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
      <Text>Details Screen</Text>
      <Button title="Go back" onPress={() => navigation.goBack()} />
    </View>
  );
}

export default DetailsScreen;

